package util;

import java.util.HashSet;
import java.util.List;
import java.util.Set;

import model.entity.role.PageFunction;
import model.entity.role.PageTask;

public class RoleUtil {
	public static Set<PageFunction> groupTask(List<PageTask> listTask) {
		HashSet<PageFunction> result = new HashSet<PageFunction>();
		
		for (PageTask task : listTask) {
			result.add(task.getPageFunction());
		}
		return result;
	}
}
